#ifndef _XX_YY_BMOCK_UTIL
#define _XX_YY_BMOCK_UTIL
#include <string>
#include <algorithm>
#include "bmock_in_out_raw_mem.hpp"

namespace bmock {
	template<class I,class P>
	size_t index_of(I begin,I end,const P &p) {
		return std::find_if(begin,end,p)-begin;
	}

	template<class I1,class I2>
	size_t mismatch_at(I1 begin1,I1 end1,I2 begin2) {
		return std::mismatch(begin1,end1,begin2).first-begin1;
	}
}


#endif